#include "8254.h"

void Dev8254SetModeAndCounterValue(BYTE bMode, WORD wVal) {
  const WORD wCounterPort[] = {0x40, 0x41, 0x42, 0x44};
  WRITE_PORT_BYTE(0x43, bMode | 0x30);
  WRITE_PORT_WORD(wCounterPort[bMode >> 6], wVal);
}
